package lab02.Test06;

/**
 * Created by 14394 on 2017/10/15.
 */
public class Triangle {
    private double a;
    private double b;
    private double c;

    public Triangle(double a, double b, double c) {
        this.a = a;
        this.b = b;
        this.c = c;
    }

    public Triangle() {

    }

    public double getA() {
        return a;
    }

    public void setA(double a) {
        this.a = a;
    }

    public double getB() {
        return b;
    }

    public void setB(double b) {
        this.b = b;
    }

    public double getC() {
        return c;
    }

    public void setC(double c) {
        this.c = c;
    }

    public double getArea() {
        double dd=Math.pow(((a+b+c)/2)*((b+c-a)/2)*((a+c-b)/2)*((a+b-c)/2),0.5);
        return dd;
    }

    public double getLength(){
        return  a+b+c;
    }
}
